﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace WebsiteAdmin.Wilson.ProInfo
{
    public partial class ProCreate : System.Web.UI.Page
    {
        private string strCon = Global.ConnWilson;
        public string startDate = DateTime.Now.ToString("yyyy-MM-dd");
        public string endDate = DateTime.Now.ToString("yyyy-MM-dd");
        protected void Page_Load(object sender, EventArgs e)
        {
            GetCatList(strCon);
        }

        protected void GetCatList(string strCon)
        {
            using (DataTable dtCatList = Bll.Category.MULTIPLE(strCon))
            {
                if (dtCatList != null && dtCatList.Rows.Count > 0)
                {
                    this.repCatList.DataSource = dtCatList.DefaultView;
                    this.repCatList.DataBind();
                }
            }
        }
    }
}
